home *** CD-ROM | disk | FTP | other *** search
- Path: oclc.org!not-for-mail
- From: razin@oclc.org (Irina Razin)
- Organization: OCLC Online Computer Library Center, Inc.
- NNTP-Posting-Host: fssun10-30.dev.oclc.org
- Distribution: world
- Message-ID: <4h3396$l4f@oclc.org>
- Date: Wed, 13 Mar 1996 16:43:16 GMT
- Subject: class for accessing indiv bits
- Newsgroups: comp.lang.c++
-
- I was thinking about writing a class for simulating array
- of bits, where each member of that array can serve as a
- binary variable, so for example, by allocating just two
- long integers I would have an array of sizeof(long)*8
- elements.
-
- Having such a class would be a lot of fun. Anybody have it
- implemented already? I have written basic functions for
- retrieving, setting and toggling bits, but they are very
- C-style. How about overloaded [],=, copy constructors etc
- so it looks just like a regular data type?
-
- Ira
-